import axios from '../axios';

/*
* 用户登录
* user: email/telephone
* pwd: 不少于6位
* */
export const login = (data) => {
    return axios({
        method: 'post',
        baseURL: '/',
        url: '/auth/oauth/token',
        data
    })
};

/*
* 获取用户基本信息，登录时调用
* 以cookie的形，存储到本地浏览器
* */
export const getUser = () => {
    return axios({
        method: 'get',
        baseURL: '/',
        url: '/rm/userExtension/findResumeByUserId'
    })  
};

